package com.power.project.dao;

import com.power.project.model.dto.UserDTO;
import com.power.project.model.pageInfo.UserQueryPageInfo;
import com.power.project.model.vo.PasswordVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
*  持久层Custom(hibernate)
*/

public interface Ww_userDaoCustom<Ww_user, Serializable> {

    Page<UserDTO> findAll(UserQueryPageInfo pageInfo, Pageable pageable);

//    Page<UserDTO> findAllByDepart(UserQueryPageInfo pageInfo, Pageable pageable);

//    Page<UserDTO> findAllByTag(UserQueryPageInfo pageInfo, Pageable pageable);

    /*
     * 根据userid查询用户密码
     */
    List<PasswordVO> queryUserPassword(String userid);
}
